import http from "@/utils/http"

enum Api {
    systemMessagePage = "/api/systemMessageLog/page",
    systemMessageAdd = "/api/systemMessage/saveOrUpdate",
    systemMessageList = "/api/systemMessage/list",
    smsSend = "/api/system/sms/send",
    thirdPartySend = "/api/thirdParty/send",
}

export const systemMessagePagePost = async (data: any) => {
    return http.post(Api.systemMessagePage, data)
}
export const systemMessageListPost = async (data: any) => {
    return http.post(Api.systemMessageList, data)
}
export const systemMessageAddPost = async (data: any) => {
    return http.post(Api.systemMessageAdd, data)
}
export const smsSendPost = async (data: any) => {
    return http.post(Api.smsSend, data)
}
export const thirdPartySendPost = async (data: any) => {
    return http.post(Api.thirdPartySend, data)
}